package service.configuration.xstream;

import java.util.Arrays;
import java.util.List;

import service.configuration.IFieldEnumConfig;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("enumeration")
public class FieldEnumConfig implements IFieldEnumConfig {
	
	@XStreamImplicit(itemFieldName="value")
	private List<String> values;
	
	public FieldEnumConfig(String... values) {
		this.values = Arrays.asList(values);
	}
	
	public FieldEnumConfig(List<String> values) {
		this.values = values;
	}
	
	public void setValues(List<String> values) {
		this.values = values;
	}
	
	public List<String> getValues() {
		return values;
	}
}
